WIP: [ON HOLD] Modal Page (+ FeedCollection)
0/4
threads resolved
Summary
TBD (related to a future front MR)
Relates to #762.
Steps to test
TBD
Estimated Regression Scope
TBD
added scoped label
mentioned in merge request !418 (closed)
17 18 class neighbor implements Interfaces\Api 19 { 20 /** 21 * @inheritDoc 22 */ 23 public function get($pages) 24 { 25 $actor = Session::getLoggedinUser() ?: null; 26 27 /** @var FeedCollection $feedCollection */ 28 $feedCollection = Di::_()->get('Feeds\Collection'); 29 $feedCollection 30 ->setActor($actor); 31 32 try { - Owner
we repeat this is lots of places. Helper function?
86 ->setAlgorithm($pages[1] ?? '') 87 ->setType($type) 88 ->setPeriod($_GET['period'] ?? '12h') 89 ->setOffset($_GET['offset'] ?? 0) 90 ->setCap($actor->isAdmin() ? 5000 : 600) 91 ->setAll((bool) ($_GET['all'] ?? false)) 92 ->setHashtags($hashtags) 93 ->setSync((bool) ($_GET['sync'] ?? false)) 94 ->setPeriodFallback(false) 95 ->setAsActivities((bool)($_GET['as_activities'] ?? true)) 96 ->setQuery(urldecode($_GET['query'] ?? '')) 97 ->setCustomType($_GET['custom_type'] ?? '') 98 ->setContainerGuid($_GET['container_guid'] ?? null) 99 ->setNsfw($nsfw) 100 ->setAccessIds($accessIds) 101 ->setSingleOwnerThreshold($singleOwnerThreshold) - Owner
this would be the same as limit?
370 372 371 373 // 372 374 375 if ($opts['from_id']) { - Owner
what is from_id?
3 * neighbor 4 * 5 * @author edgebal 6 */ 7 8 namespace Minds\Controllers\api\v2\feeds; 9 10 use Exception; 11 use Minds\Api\Factory; 12 use Minds\Core\Di\Di; 13 use Minds\Core\Feeds\FeedCollection; 14 use Minds\Core\Session; 15 use Minds\Helpers\Text; 16 use Minds\Interfaces; 17 18 class neighbor implements Interfaces\Api - Owner
Do we need this endpoint? Why is the frontend not just making use channel feed api?
changed the description
added scoped label
- Developer
Set as On Hold since we're reusing existing API endpoints with a few tweaks.
changed title from WIP: Modal Page (+ FeedCollection) to WIP: Modal Page (+ FeedCollection)