1
0
Fork 0

Merge pull request #3185 from pixelfed/staging

Staging
This commit is contained in:
daniel 2022-01-24 23:27:28 -07:00 committed by GitHub
commit daeccef756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 46 additions and 12 deletions

View File

@ -9,12 +9,15 @@
- Added Hovercards ([16ced7b4](https://github.com/pixelfed/pixelfed/commit/16ced7b4))
- Fix word-break on statuses ([16ced7b4](https://github.com/pixelfed/pixelfed/commit/16ced7b4))
- Add pronouns to hovercards ([33f863e8](https://github.com/pixelfed/pixelfed/commit/33f863e8))
- Improved onboarding ([042c5b6c](https://github.com/pixelfed/pixelfed/commit/042c5b6c))
### Updated
- Updated MediaStorageService, fix remote avatar bug. ([1c20d696](https://github.com/pixelfed/pixelfed/commit/1c20d696))
- Updated WebfingerService. Fixes #3167. ([aff74566](https://github.com/pixelfed/pixelfed/commit/aff74566))
- Updated ComposeModal, add max file size and allowed mime types. Fixes #3162. ([879281cc](https://github.com/pixelfed/pixelfed/commit/879281cc))
- Updated profile embeds, fix NaN bug and improve performance. ([3bd211d7](https://github.com/pixelfed/pixelfed/commit/3bd211d7))
- Updated ApiV1Controller, improve follow count cache invalidation. ([4b6effb9](https://github.com/pixelfed/pixelfed/commit/4b6effb9))
- ([](https://github.com/pixelfed/pixelfed/commit/))
## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)

View File

@ -662,6 +662,8 @@ class ApiV1Controller extends Controller
Cache::forget('profile:follower_count:'.$user->profile_id);
Cache::forget('profile:following_count:'.$target->id);
Cache::forget('profile:following_count:'.$user->profile_id);
AccountService::del($user->profile_id);
AccountService::del($target->id);
$res = RelationshipService::get($user->profile_id, $target->id);
@ -685,7 +687,6 @@ class ApiV1Controller extends Controller
->whereNull('status')
->findOrFail($id);
$private = (bool) $target->is_private;
$remote = (bool) $target->domain;
@ -705,6 +706,8 @@ class ApiV1Controller extends Controller
abort(400, 'You can only follow or unfollow ' . Follower::FOLLOW_PER_HOUR . ' users per hour');
}
$user->profile->decrement('following_count');
FollowRequest::whereFollowerId($user->profile_id)
->whereFollowingId($target->id)
->delete();
@ -725,6 +728,12 @@ class ApiV1Controller extends Controller
Cache::forget('api:local:exp:rec:'.$user->profile_id);
Cache::forget('user:account:id:'.$target->user_id);
Cache::forget('user:account:id:'.$user->id);
Cache::forget('profile:follower_count:'.$target->id);
Cache::forget('profile:follower_count:'.$user->profile_id);
Cache::forget('profile:following_count:'.$target->id);
Cache::forget('profile:following_count:'.$user->profile_id);
AccountService::del($user->profile_id);
AccountService::del($target->id);
$res = RelationshipService::get($user->profile_id, $target->id);

View File

@ -27,7 +27,7 @@ class LoginController extends Controller
*
* @var string
*/
protected $redirectTo = '/';
protected $redirectTo = '/i/web';
protected $maxAttempts = 5;
protected $decayMinutes = 60;

View File

@ -32,7 +32,7 @@ class RegisterController extends Controller
*
* @var string
*/
protected $redirectTo = '/';
protected $redirectTo = '/i/web';
/**
* Create a new controller instance.

View File

@ -77,7 +77,8 @@
"groupPost": "group post",
"modlog": "modlog",
"post": "post",
"story": "story"
"story": "story",
"noneFound": "No notifications found"
},
"post": {
"shareToFollowers": "Share to followers",
@ -146,7 +147,13 @@
"add": "Add Story"
},
"timeline": {
"peopleYouMayKnow": "People you may know"
"peopleYouMayKnow": "People you may know",
"onboarding": {
"welcome": "Welcome",
"thisIsYourHomeFeed": "This is your home feed, a chronological feed of posts from accounts you follow.",
"letUsHelpYouFind": "Let us help you find some interesting people to follow",
"refreshFeed": "Refresh my feed"
}
},
"hashtags": {
"emptyFeed": "We can't seem to find any posts for this hashtag"

2
public/js/spa.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -24,9 +24,9 @@
"/js/rempos.js": "/js/rempos.js?id=44a61814a65c98749e8c",
"/js/rempro.js": "/js/rempro.js?id=38df28bb47f4d8e99313",
"/js/search.js": "/js/search.js?id=dc888b173463dc3894ba",
"/js/spa.js": "/js/spa.js?id=fdc5119b28e945c2bb54",
"/js/spa.js": "/js/spa.js?id=75b9492304ec91f48d7c",
"/js/status.js": "/js/status.js?id=12003fb7fcda55bba597",
"/js/stories.js": "/js/stories.js?id=f882708d5f00b4738dd7",
"/js/story-compose.js": "/js/story-compose.js?id=0f9d2f7ce5e63ef14c6a",
"/js/timeline.js": "/js/timeline.js?id=0c422529ee173b0512e0"
"/js/timeline.js": "/js/timeline.js?id=d05980a9dda500dc216a"
}

View File

@ -77,7 +77,8 @@
"groupPost": "group post",
"modlog": "modlog",
"post": "post",
"story": "story"
"story": "story",
"noneFound": "No notifications found"
},
"post": {
"shareToFollowers": "Share to followers",
@ -146,7 +147,13 @@
"add": "Add Story"
},
"timeline": {
"peopleYouMayKnow": "People you may know"
"peopleYouMayKnow": "People you may know",
"onboarding": {
"welcome": "Welcome",
"thisIsYourHomeFeed": "This is your home feed, a chronological feed of posts from accounts you follow.",
"letUsHelpYouFind": "Let us help you find some interesting people to follow",
"refreshFeed": "Refresh my feed"
}
},
"hashtags": {
"emptyFeed": "We can't seem to find any posts for this hashtag"

View File

@ -101,6 +101,7 @@ return [
'modlog' => 'modlog',
'post' => 'post',
'story' => 'story',
'noneFound' => 'No notifications found',
],
'post' => [
@ -180,7 +181,14 @@ return [
],
'timeline' => [
'peopleYouMayKnow' => 'People you may know'
'peopleYouMayKnow' => 'People you may know',
'onboarding' => [
'welcome' => 'Welcome',
'thisIsYourHomeFeed' => 'This is your home feed, a chronological feed of posts from accounts you follow.',
'letUsHelpYouFind' => 'Let us help you find some interesting people to follow',
'refreshFeed' => 'Refresh my feed',
],
],
'hashtags' => [