aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-04-15 03:00:08 -0700
committerfriendica <info@friendica.com>2013-04-15 03:00:08 -0700
commit7e6890832b15d8417cb812cbaa00d3ed8c954ef0 (patch)
treeff94dd547504ac2f3a65a18bda3a8804fdb5da43 /include/photos.php
parentab5151c470e630aa3864bbed927dd02f7b192166 (diff)
downloadvolse-hubzilla-7e6890832b15d8417cb812cbaa00d3ed8c954ef0.tar.gz
volse-hubzilla-7e6890832b15d8417cb812cbaa00d3ed8c954ef0.tar.bz2
volse-hubzilla-7e6890832b15d8417cb812cbaa00d3ed8c954ef0.zip
turn all Red links into zrls (not the old zrls, the new bbcode zrl which means we can zidify them)
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/photos.php b/include/photos.php
index e0d1762bb..123cd0659 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -208,9 +208,9 @@ function photo_upload($channel, $observer, $args) {
$arr['deny_gid'] = $str_group_deny;
- $arr['body'] = '[url=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
+ $arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
. '[img]' . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/img]'
- . '[/url]';
+ . '[/zrl]';
$item_id = item_store($arr);
@@ -350,9 +350,9 @@ function photos_create_item($channel, $creator_hash, $photo, $visible = false) {
$arr['deny_cid'] = $photo['deny_cid'];
$arr['deny_gid'] = $photo['deny_gid'];
- $arr['body'] = '[url=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']'
+ $arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']'
. '[img]' . z_root() . '/photo/' . $photo['resource_id'] . '-' . $photo['scale'] . '[/img]'
- . '[/url]';
+ . '[/zrl]';
$item_id = item_store($arr);
return $item_id;