فهرست منبع

Merge pull request #3681 from pixelfed/staging

Staging
daniel 2 سال پیش
والد
کامیت
d8f62ed94c
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 4 1
      CHANGELOG.md
  2. 2 2
      app/Http/Controllers/Api/ApiV1Controller.php

+ 4 - 1
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 ## [Unreleased](https://github.com/pixelfed/pixelfed/compare/v0.11.4...dev)
 
+### Updates
+- Update ApiV1Controller, include self likes in favourited_by endpoint ([58b331d2](https://github.com/pixelfed/pixelfed/commit/58b331d2))
+-  ([](https://github.com/pixelfed/pixelfed/commit/))
+
 ## [v0.11.4 (2022-10-04)](https://github.com/pixelfed/pixelfed/compare/v0.11.3...v0.11.4)
 
 ### New Features
@@ -94,7 +98,6 @@
 - Update CollectionController, limit max title and description length ([6e76cf4b](https://github.com/pixelfed/pixelfed/commit/6e76cf4b))
 - Update collection components, fix title/description padding/overflow bug and add title/description limit and input counter ([6e4272a8](https://github.com/pixelfed/pixelfed/commit/6e4272a8))
 - Update Media model, fix thumbnail cdn paths ([9888af12](https://github.com/pixelfed/pixelfed/commit/9888af12))
--  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)
 

+ 2 - 2
app/Http/Controllers/Api/ApiV1Controller.php

@@ -2449,12 +2449,12 @@ class ApiV1Controller extends Controller
 			->limit($limit)
 			->get()
 			->map(function($like) {
-				$account = AccountService::getMastodon($like->profile_id);
+				$account = AccountService::getMastodon($like->profile_id, true);
 				$account['follows'] = isset($like->created_at);
 				return $account;
 			})
 			->filter(function($account) use($user) {
-				return $account && isset($account['id']) && $account['id'] != $user->profile_id;
+				return $account && isset($account['id']);
 			})
 			->values();