Item::update(['starred' => true], ['id' => $item['id']]);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
Post\ThreadUser::setIgnored($item['uri-id'], $uid, true);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
Post\Collection::add($item['uri-id'], Post\Collection::FEATURED, $item['author-id'], $uid);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(),$isReblog)->toArray());
}
}
DI::mstdnError()->UnprocessableEntity();
}
- $item = Post::selectOriginalForUser($uid, ['id', 'network'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
+ $item = Post::selectOriginalForUser($uid, ['id', 'uri-id', 'network'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
if (!DBA::isResult($item)) {
DI::mstdnError()->RecordNotFound();
}
Item::performActivity($item['id'], 'announce', $uid);
}
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
Item::update(['starred' => false], ['id' => $item['id']]);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
Post\ThreadUser::setIgnored($item['uri-id'], $uid, false);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
Post\Collection::remove($item['uri-id'], Post\Collection::FEATURED, $uid);
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}
DI::mstdnError()->UnprocessableEntity();
}
- $item = Post::selectOriginalForUser($uid, ['id', 'network'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
+ $item = Post::selectOriginalForUser($uid, ['id', 'uri-id', 'network'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
if (!DBA::isResult($item)) {
DI::mstdnError()->RecordNotFound();
}
Item::performActivity($item['id'], 'unannounce', $uid);
}
- System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
+ // @TODO Remove once mstdnStatus()->createFromUriId is fixed
+ $isReblog = $item['uri-id'] != $this->parameters['id'];
+
+ System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
}
}