X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b3561aa61e022b65d5c0601edaf27059ff7f2da4..85bd24522825b832a8f30c5629b81cf90307a388:/widget/issue/activity.php diff --git a/widget/issue/activity.php b/widget/issue/activity.php index 371f11a..df872ae 100644 --- a/widget/issue/activity.php +++ b/widget/issue/activity.php @@ -8,17 +8,27 @@ $sql = "SELECT $cols FROM messages m JOIN issues i ON i.id = issue"; $sql .= " WHERE message IS NOT NULL"; $sql .= " ORDER BY m.created DESC LIMIT $limit"; $query = $Db->query($sql); +$rows = $query->fetchall(); $msgformat = [ + '{(.*)(
]+>
]+>
]*><\/p>)+\z/', $row->message)) {
+ # postpone related image to the following message
+ $next->message = $row->message . $next->message;
+ continue;
+ }
+
if (!$prev or $prev->issue !== $row->issue or $prev->author !== $row->author
or !preg_match('/\A
message)) {
print '