Add PR and Issue Numbers for TODO for createFromUriId hack in Mastodon API
This commit is contained in:
parent
f879b2c9bc
commit
0985ddb3ff
|
@ -65,7 +65,9 @@ class Bookmark extends BaseApi
|
||||||
|
|
||||||
Item::update(['starred' => true], ['id' => $item['id']]);
|
Item::update(['starred' => true], ['id' => $item['id']]);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -49,7 +49,9 @@ class Favourite extends BaseApi
|
||||||
|
|
||||||
Item::performActivity($item['id'], 'like', $uid);
|
Item::performActivity($item['id'], 'like', $uid);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -53,7 +53,9 @@ class Mute extends BaseApi
|
||||||
|
|
||||||
Post\ThreadUser::setIgnored($item['uri-id'], $uid, true);
|
Post\ThreadUser::setIgnored($item['uri-id'], $uid, true);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -48,7 +48,9 @@ class Pin extends BaseApi
|
||||||
|
|
||||||
Post\Collection::add($item['uri-id'], Post\Collection::FEATURED, $item['author-id'], $uid);
|
Post\Collection::add($item['uri-id'], Post\Collection::FEATURED, $item['author-id'], $uid);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(),$isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(),$isReblog)->toArray());
|
||||||
|
|
|
@ -58,7 +58,9 @@ class Reblog extends BaseApi
|
||||||
Item::performActivity($item['id'], 'announce', $uid);
|
Item::performActivity($item['id'], 'announce', $uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -65,7 +65,9 @@ class Unbookmark extends BaseApi
|
||||||
|
|
||||||
Item::update(['starred' => false], ['id' => $item['id']]);
|
Item::update(['starred' => false], ['id' => $item['id']]);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -49,7 +49,9 @@ class Unfavourite extends BaseApi
|
||||||
|
|
||||||
Item::performActivity($item['id'], 'unlike', $uid);
|
Item::performActivity($item['id'], 'unlike', $uid);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -53,7 +53,9 @@ class Unmute extends BaseApi
|
||||||
|
|
||||||
Post\ThreadUser::setIgnored($item['uri-id'], $uid, false);
|
Post\ThreadUser::setIgnored($item['uri-id'], $uid, false);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -48,7 +48,9 @@ class Unpin extends BaseApi
|
||||||
|
|
||||||
Post\Collection::remove($item['uri-id'], Post\Collection::FEATURED, $uid);
|
Post\Collection::remove($item['uri-id'], Post\Collection::FEATURED, $uid);
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
|
@ -64,7 +64,9 @@ class Unreblog extends BaseApi
|
||||||
Item::performActivity($item['id'], 'unannounce', $uid);
|
Item::performActivity($item['id'], 'unannounce', $uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
// @TODO Remove once mstdnStatus()->createFromUriId is fixed so that it returns posts not reshared posts if given an ID to an original post that has been reshared
|
||||||
|
// Introduced in this PR: https://github.com/friendica/friendica/pull/13175
|
||||||
|
// Issue tracking the behavior of createFromUriId: https://github.com/friendica/friendica/issues/13350
|
||||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||||
|
|
||||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user