Browse Source

Merge pull request #3093 from annando/issue-3011

Issue 2364: OStatus: Don't fetch liked contents
tags/3.5.1
Tobias Diekershoff 3 years ago
committed by GitHub
parent
commit
b81a1fde09
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      include/ostatus.php

+ 3
- 1
include/ostatus.php View File

@@ -523,7 +523,9 @@ class ostatus {
$r = q("SELECT `id` FROM `item` WHERE `uid` = %d AND `uri` = '%s'",
intval($importer["uid"]), dbesc($item["parent-uri"]));

if (!$r AND ($related != "")) {
// Only fetch missing stuff if it is a comment or reshare.
if (in_array($item["verb"], array(ACTIVITY_POST, ACTIVITY_SHARE)) AND
!dbm::is_result($r) AND ($related != "")) {
$reply_path = str_replace("/notice/", "/api/statuses/show/", $related).".atom";

if ($reply_path != $related) {


Loading…
Cancel
Save