aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-07-19 18:45:34 +0200
committerMario Vavti <mario@mariovavti.com>2019-07-19 18:45:34 +0200
commitad58697521dcdca8f4f38db9f69588d7d27df486 (patch)
treeaa67215be50603d29557de4ec4179306443a7447 /Zotlabs/Lib/Activity.php
parent6ca7527ec9043571525187c0d33e75f03c5a8e1b (diff)
downloadvolse-hubzilla-ad58697521dcdca8f4f38db9f69588d7d27df486.tar.gz
volse-hubzilla-ad58697521dcdca8f4f38db9f69588d7d27df486.tar.bz2
volse-hubzilla-ad58697521dcdca8f4f38db9f69588d7d27df486.zip
move image attachments to the top
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 520c456cc..0808228a6 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1769,14 +1769,14 @@ class Activity {
}
foreach($ptr as $vurl) {
if(strpos($s['body'],$vurl['href']) === false) {
- $s['body'] .= "\n\n" . '[zmg]' . $vurl['href'] . '[/zmg]';
+ $s['body'] .= '[zmg]' . $vurl['href'] . '[/zmg]' . "\n\n" . $s['body'];
break;
}
}
}
elseif(is_string($act->obj['url'])) {
if(strpos($s['body'],$act->obj['url']) === false) {
- $s['body'] .= "\n\n" . '[zmg]' . $act->obj['url'] . '[/zmg]';
+ $s['body'] .= '[zmg]' . $act->obj['url'] . '[/zmg]' . "\n\n" . $s['body'];
}
}
}