]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Conversation.php
Improve expire for item-content and item-activity
[friendica.git] / src / Model / Conversation.php
index cd51a537ed247839bdeebf181e6f9796ac9b5bf0..17f151fe03ba9cb771bb501c14ef8828620c5e40 100644 (file)
@@ -52,8 +52,8 @@ class Conversation
                                $conversation['source'] = $arr['source'];
                        }
 
-                       $old_conv = dba::fetch_first("SELECT `item-uri`, `reply-to-uri`, `conversation-uri`, `conversation-href`, `protocol`, `source`
-                                       FROM `conversation` WHERE `item-uri` = ?", $conversation['item-uri']);
+                       $fields = ['item-uri', 'reply-to-uri', 'conversation-uri', 'conversation-href', 'protocol', 'source'];
+                       $old_conv = dba::selectFirst('conversation', $fields, ['item-uri' => $conversation['item-uri']]);
                        if (DBM::is_result($old_conv)) {
                                // Don't update when only the source has changed.
                                // Only do this when there had been no source before.