mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
commit
57df06a0b6
59 changed files with 1970 additions and 1802 deletions
43
CHANGELOG.md
43
CHANGELOG.md
|
@ -19,6 +19,49 @@
|
||||||
- Update SiteController, add curatedOnboarding method that gracefully falls back to open registration when applicable ([95199843](https://github.com/pixelfed/pixelfed/commit/95199843))
|
- Update SiteController, add curatedOnboarding method that gracefully falls back to open registration when applicable ([95199843](https://github.com/pixelfed/pixelfed/commit/95199843))
|
||||||
- Update AP transformers, add DeleteActor activity ([bcce1df6](https://github.com/pixelfed/pixelfed/commit/bcce1df6))
|
- Update AP transformers, add DeleteActor activity ([bcce1df6](https://github.com/pixelfed/pixelfed/commit/bcce1df6))
|
||||||
- Update commands, add user account delete cli command to federate account deletion ([4aa0e25f](https://github.com/pixelfed/pixelfed/commit/4aa0e25f))
|
- Update commands, add user account delete cli command to federate account deletion ([4aa0e25f](https://github.com/pixelfed/pixelfed/commit/4aa0e25f))
|
||||||
|
- Update web-api popular accounts route to its own method to remove the breaking oauth scope bug ([a4bc5ce3](https://github.com/pixelfed/pixelfed/commit/a4bc5ce3))
|
||||||
|
- Update config cache ([5e4d4eff](https://github.com/pixelfed/pixelfed/commit/5e4d4eff))
|
||||||
|
- Update Config, use config_cache ([7785a2da](https://github.com/pixelfed/pixelfed/commit/7785a2da))
|
||||||
|
- Update ApiV1Dot1Controller, use config_cache for in-app registration ([b0cb4456](https://github.com/pixelfed/pixelfed/commit/b0cb4456))
|
||||||
|
- Update captcha, use config_cache helper ([8a89e3c9](https://github.com/pixelfed/pixelfed/commit/8a89e3c9))
|
||||||
|
- Update custom emoji, add config_cache support ([481314cd](https://github.com/pixelfed/pixelfed/commit/481314cd))
|
||||||
|
- Update ProfileController, fix permalink redirect bug ([75081e60](https://github.com/pixelfed/pixelfed/commit/75081e60))
|
||||||
|
- Update admin css, use font-display:swap for nucleo icons ([8a0c456e](https://github.com/pixelfed/pixelfed/commit/8a0c456e))
|
||||||
|
- Update PixelfedDirectoryController, fix boolean cast bug ([f08aab22](https://github.com/pixelfed/pixelfed/commit/f08aab22))
|
||||||
|
- Update PixelfedDirectoryController, use cached stats ([f2f2a809](https://github.com/pixelfed/pixelfed/commit/f2f2a809))
|
||||||
|
- Update AdminDirectoryController, fix type casting ([ad506e90](https://github.com/pixelfed/pixelfed/commit/ad506e90))
|
||||||
|
- Update image pipeline, use config_cache ([a72188a7](https://github.com/pixelfed/pixelfed/commit/a72188a7))
|
||||||
|
- Update cloud storage, use config_cache ([665581d8](https://github.com/pixelfed/pixelfed/commit/665581d8))
|
||||||
|
- Update pixelfed.max_album_length, use config_cache ([fecbe189](https://github.com/pixelfed/pixelfed/commit/fecbe189))
|
||||||
|
- Update media_types, use config_cache ([d670de17](https://github.com/pixelfed/pixelfed/commit/d670de17))
|
||||||
|
- Update landing settings, use config_cache ([40478f25](https://github.com/pixelfed/pixelfed/commit/40478f25))
|
||||||
|
- Update activitypub setting, use config_cache ([5071aaf4](https://github.com/pixelfed/pixelfed/commit/5071aaf4))
|
||||||
|
- Update oauth setting, use config_cache ([ce228f7f](https://github.com/pixelfed/pixelfed/commit/ce228f7f))
|
||||||
|
- Update stories config, use config_cache ([d1adb109](https://github.com/pixelfed/pixelfed/commit/d1adb109))
|
||||||
|
- Update ig import, use config_cache ([da0e0ffa](https://github.com/pixelfed/pixelfed/commit/da0e0ffa))
|
||||||
|
- Update autospam config, use config_cache ([a76cb5f4](https://github.com/pixelfed/pixelfed/commit/a76cb5f4))
|
||||||
|
- Update app.name config, use config_cache ([911446c0](https://github.com/pixelfed/pixelfed/commit/911446c0))
|
||||||
|
- Update UserObserver, fix type casting ([949e9979](https://github.com/pixelfed/pixelfed/commit/949e9979))
|
||||||
|
- Update user_filters, use config_cache ([6ce513f8](https://github.com/pixelfed/pixelfed/commit/6ce513f8))
|
||||||
|
- Update filesystems config, add to config_cache ([087b2791](https://github.com/pixelfed/pixelfed/commit/087b2791))
|
||||||
|
- Update web-admin routes, add setting api routes ([828a456f](https://github.com/pixelfed/pixelfed/commit/828a456f))
|
||||||
|
- Update hashtag component ([cee979ed](https://github.com/pixelfed/pixelfed/commit/cee979ed))
|
||||||
|
- Update AdminReadMore component, add .prevent to click action ([704e7b12](https://github.com/pixelfed/pixelfed/commit/704e7b12))
|
||||||
|
- Update admin dashboard, add admin settings partials ([eb487123](https://github.com/pixelfed/pixelfed/commit/eb487123))
|
||||||
|
- Update admin settings, refactor to vue component ([674e560f](https://github.com/pixelfed/pixelfed/commit/674e560f))
|
||||||
|
- Update ConfigCacheService, encrypt keys at rest ([3628b462](https://github.com/pixelfed/pixelfed/commit/3628b462))
|
||||||
|
- Update RemoteFollowImportRecent, use MediaPathService ([5162c070](https://github.com/pixelfed/pixelfed/commit/5162c070))
|
||||||
|
- Update AdminSettingsController, add user filter max limit settings ([ac1f0748](https://github.com/pixelfed/pixelfed/commit/ac1f0748))
|
||||||
|
- Update AdminSettingsController, add AdminSettingsService ([dcc5f416](https://github.com/pixelfed/pixelfed/commit/dcc5f416))
|
||||||
|
- Update AdminSettings component, fix user settings ([aba1e13d](https://github.com/pixelfed/pixelfed/commit/aba1e13d))
|
||||||
|
- Update AdminInstances component ([ec2fdd61](https://github.com/pixelfed/pixelfed/commit/ec2fdd61))
|
||||||
|
- Update AdminSettings, add max_account_size support ([2dcbc1d5](https://github.com/pixelfed/pixelfed/commit/2dcbc1d5))
|
||||||
|
- Update AdminSettings, use better validation for user integer settings ([d946afcc](https://github.com/pixelfed/pixelfed/commit/d946afcc))
|
||||||
|
- Update spa sass, fix timestamp dark mode bug ([4147f7c5](https://github.com/pixelfed/pixelfed/commit/4147f7c5))
|
||||||
|
- Update relationships view, fix unfollow hashtag bug. Fixes #5008 ([8c693640](https://github.com/pixelfed/pixelfed/commit/8c693640))
|
||||||
|
- Update PrivacySettings controller, refresh RelationshipService when unmute/unblocking ([b7322b68](https://github.com/pixelfed/pixelfed/commit/b7322b68))
|
||||||
|
- Update ApiV1Controller, improve refresh relations logic when (un)muting or (un)blocking ([b8e96a5f](https://github.com/pixelfed/pixelfed/commit/b8e96a5f))
|
||||||
|
- Update context menu, add mute/block/unfollow actions and update relationship store accordingly ([81d1e0fd](https://github.com/pixelfed/pixelfed/commit/81d1e0fd))
|
||||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||||
|
|
||||||
## [v0.11.13 (2024-03-05)](https://github.com/pixelfed/pixelfed/compare/v0.11.12...v0.11.13)
|
## [v0.11.13 (2024-03-05)](https://github.com/pixelfed/pixelfed/compare/v0.11.12...v0.11.13)
|
||||||
|
|
|
@ -1200,8 +1200,8 @@ class ApiV1Controller extends Controller
|
||||||
if ($filter) {
|
if ($filter) {
|
||||||
$filter->delete();
|
$filter->delete();
|
||||||
UserFilterService::unblock($pid, $profile->id);
|
UserFilterService::unblock($pid, $profile->id);
|
||||||
RelationshipService::refresh($pid, $id);
|
|
||||||
}
|
}
|
||||||
|
RelationshipService::refresh($pid, $id);
|
||||||
|
|
||||||
$resource = new Fractal\Resource\Item($profile, new RelationshipTransformer());
|
$resource = new Fractal\Resource\Item($profile, new RelationshipTransformer());
|
||||||
$res = $this->fractal->createData($resource)->toArray();
|
$res = $this->fractal->createData($resource)->toArray();
|
||||||
|
@ -2207,9 +2207,10 @@ class ApiV1Controller extends Controller
|
||||||
if ($filter) {
|
if ($filter) {
|
||||||
$filter->delete();
|
$filter->delete();
|
||||||
UserFilterService::unmute($pid, $profile->id);
|
UserFilterService::unmute($pid, $profile->id);
|
||||||
RelationshipService::refresh($pid, $id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RelationshipService::refresh($pid, $id);
|
||||||
|
|
||||||
$resource = new Fractal\Resource\Item($profile, new RelationshipTransformer());
|
$resource = new Fractal\Resource\Item($profile, new RelationshipTransformer());
|
||||||
$res = $this->fractal->createData($resource)->toArray();
|
$res = $this->fractal->createData($resource)->toArray();
|
||||||
|
|
||||||
|
|
|
@ -2,23 +2,17 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers\Settings;
|
namespace App\Http\Controllers\Settings;
|
||||||
|
|
||||||
use App\AccountLog;
|
|
||||||
use App\EmailVerification;
|
|
||||||
use App\Instance;
|
|
||||||
use App\Follower;
|
use App\Follower;
|
||||||
use App\Media;
|
|
||||||
use App\Profile;
|
use App\Profile;
|
||||||
use App\User;
|
use App\Services\RelationshipService;
|
||||||
use App\UserFilter;
|
use App\UserFilter;
|
||||||
use App\Util\Lexer\PrettyNumber;
|
use Auth;
|
||||||
use App\Util\ActivityPub\Helpers;
|
use Cache;
|
||||||
use Auth, Cache, DB;
|
use DB;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\UserDomainBlock;
|
|
||||||
|
|
||||||
trait PrivacySettings
|
trait PrivacySettings
|
||||||
{
|
{
|
||||||
|
|
||||||
public function privacy()
|
public function privacy()
|
||||||
{
|
{
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
@ -35,13 +29,13 @@ trait PrivacySettings
|
||||||
$settings = $request->user()->settings;
|
$settings = $request->user()->settings;
|
||||||
$profile = $request->user()->profile;
|
$profile = $request->user()->profile;
|
||||||
$fields = [
|
$fields = [
|
||||||
'is_private',
|
'is_private',
|
||||||
'crawlable',
|
'crawlable',
|
||||||
'public_dm',
|
'public_dm',
|
||||||
'show_profile_follower_count',
|
'show_profile_follower_count',
|
||||||
'show_profile_following_count',
|
'show_profile_following_count',
|
||||||
'indexable',
|
'indexable',
|
||||||
'show_atom',
|
'show_atom',
|
||||||
];
|
];
|
||||||
|
|
||||||
$profile->indexable = $request->input('indexable') == 'on';
|
$profile->indexable = $request->input('indexable') == 'on';
|
||||||
|
@ -67,7 +61,7 @@ trait PrivacySettings
|
||||||
} else {
|
} else {
|
||||||
$settings->{$field} = true;
|
$settings->{$field} = true;
|
||||||
}
|
}
|
||||||
} elseif ($field == 'public_dm') {
|
} elseif ($field == 'public_dm') {
|
||||||
if ($form == 'on') {
|
if ($form == 'on') {
|
||||||
$settings->{$field} = true;
|
$settings->{$field} = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,18 +79,19 @@ trait PrivacySettings
|
||||||
$settings->save();
|
$settings->save();
|
||||||
}
|
}
|
||||||
$pid = $profile->id;
|
$pid = $profile->id;
|
||||||
Cache::forget('profile:settings:' . $pid);
|
Cache::forget('profile:settings:'.$pid);
|
||||||
Cache::forget('user:account:id:' . $profile->user_id);
|
Cache::forget('user:account:id:'.$profile->user_id);
|
||||||
Cache::forget('profile:follower_count:' . $pid);
|
Cache::forget('profile:follower_count:'.$pid);
|
||||||
Cache::forget('profile:following_count:' . $pid);
|
Cache::forget('profile:following_count:'.$pid);
|
||||||
Cache::forget('profile:atom:enabled:' . $pid);
|
Cache::forget('profile:atom:enabled:'.$pid);
|
||||||
Cache::forget('profile:embed:' . $pid);
|
Cache::forget('profile:embed:'.$pid);
|
||||||
Cache::forget('pf:acct:settings:hidden-followers:' . $pid);
|
Cache::forget('pf:acct:settings:hidden-followers:'.$pid);
|
||||||
Cache::forget('pf:acct:settings:hidden-following:' . $pid);
|
Cache::forget('pf:acct:settings:hidden-following:'.$pid);
|
||||||
Cache::forget('pf:acct-trans:hideFollowing:' . $pid);
|
Cache::forget('pf:acct-trans:hideFollowing:'.$pid);
|
||||||
Cache::forget('pf:acct-trans:hideFollowers:' . $pid);
|
Cache::forget('pf:acct-trans:hideFollowers:'.$pid);
|
||||||
Cache::forget('pfc:cached-user:wt:' . strtolower($profile->username));
|
Cache::forget('pfc:cached-user:wt:'.strtolower($profile->username));
|
||||||
Cache::forget('pfc:cached-user:wot:' . strtolower($profile->username));
|
Cache::forget('pfc:cached-user:wot:'.strtolower($profile->username));
|
||||||
|
|
||||||
return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!');
|
return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,13 +100,14 @@ trait PrivacySettings
|
||||||
$pid = Auth::user()->profile->id;
|
$pid = Auth::user()->profile->id;
|
||||||
$ids = (new UserFilter())->mutedUserIds($pid);
|
$ids = (new UserFilter())->mutedUserIds($pid);
|
||||||
$users = Profile::whereIn('id', $ids)->simplePaginate(15);
|
$users = Profile::whereIn('id', $ids)->simplePaginate(15);
|
||||||
|
|
||||||
return view('settings.privacy.muted', compact('users'));
|
return view('settings.privacy.muted', compact('users'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function mutedUsersUpdate(Request $request)
|
public function mutedUsersUpdate(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'profile_id' => 'required|integer|min:1'
|
'profile_id' => 'required|integer|min:1',
|
||||||
]);
|
]);
|
||||||
$fid = $request->input('profile_id');
|
$fid = $request->input('profile_id');
|
||||||
$pid = Auth::user()->profile->id;
|
$pid = Auth::user()->profile->id;
|
||||||
|
@ -123,6 +119,8 @@ trait PrivacySettings
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
$filter->delete();
|
$filter->delete();
|
||||||
});
|
});
|
||||||
|
RelationshipService::refresh($pid, $fid);
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,14 +129,14 @@ trait PrivacySettings
|
||||||
$pid = Auth::user()->profile->id;
|
$pid = Auth::user()->profile->id;
|
||||||
$ids = (new UserFilter())->blockedUserIds($pid);
|
$ids = (new UserFilter())->blockedUserIds($pid);
|
||||||
$users = Profile::whereIn('id', $ids)->simplePaginate(15);
|
$users = Profile::whereIn('id', $ids)->simplePaginate(15);
|
||||||
|
|
||||||
return view('settings.privacy.blocked', compact('users'));
|
return view('settings.privacy.blocked', compact('users'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function blockedUsersUpdate(Request $request)
|
public function blockedUsersUpdate(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'profile_id' => 'required|integer|min:1'
|
'profile_id' => 'required|integer|min:1',
|
||||||
]);
|
]);
|
||||||
$fid = $request->input('profile_id');
|
$fid = $request->input('profile_id');
|
||||||
$pid = Auth::user()->profile->id;
|
$pid = Auth::user()->profile->id;
|
||||||
|
@ -150,6 +148,8 @@ trait PrivacySettings
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
$filter->delete();
|
$filter->delete();
|
||||||
});
|
});
|
||||||
|
RelationshipService::refresh($pid, $fid);
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ trait PrivacySettings
|
||||||
$profile = Auth::user()->profile;
|
$profile = Auth::user()->profile;
|
||||||
$settings = Auth::user()->settings;
|
$settings = Auth::user()->settings;
|
||||||
|
|
||||||
if($mode !== 'keep-all') {
|
if ($mode !== 'keep-all') {
|
||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
case 'mutual-only':
|
case 'mutual-only':
|
||||||
$following = $profile->following()->pluck('profiles.id');
|
$following = $profile->following()->pluck('profiles.id');
|
||||||
|
@ -211,7 +211,7 @@ trait PrivacySettings
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
# code...
|
// code...
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,6 +221,7 @@ trait PrivacySettings
|
||||||
$settings->save();
|
$settings->save();
|
||||||
$profile->save();
|
$profile->save();
|
||||||
Cache::forget('profiles:private');
|
Cache::forget('profiles:private');
|
||||||
|
|
||||||
return [200];
|
return [200];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
590
composer.lock
generated
590
composer.lock
generated
File diff suppressed because it is too large
Load diff
1381
package-lock.json
generated
1381
package-lock.json
generated
File diff suppressed because it is too large
Load diff
BIN
public/css/spa.css
vendored
BIN
public/css/spa.css
vendored
Binary file not shown.
BIN
public/js/account-import.js
vendored
BIN
public/js/account-import.js
vendored
Binary file not shown.
BIN
public/js/admin.js
vendored
BIN
public/js/admin.js
vendored
Binary file not shown.
BIN
public/js/app.js
vendored
BIN
public/js/app.js
vendored
Binary file not shown.
BIN
public/js/changelog.bundle.bf44edbbfa14bd53.js
vendored
BIN
public/js/changelog.bundle.bf44edbbfa14bd53.js
vendored
Binary file not shown.
BIN
public/js/changelog.bundle.d5810c2672b6abc7.js
vendored
Normal file
BIN
public/js/changelog.bundle.d5810c2672b6abc7.js
vendored
Normal file
Binary file not shown.
BIN
public/js/compose.chunk.47ba00abaa827b26.js
vendored
Normal file
BIN
public/js/compose.chunk.47ba00abaa827b26.js
vendored
Normal file
Binary file not shown.
BIN
public/js/compose.chunk.a0cfdf07f5062445.js
vendored
BIN
public/js/compose.chunk.a0cfdf07f5062445.js
vendored
Binary file not shown.
BIN
public/js/daci.chunk.34dc7bad3a0792cc.js
vendored
BIN
public/js/daci.chunk.34dc7bad3a0792cc.js
vendored
Binary file not shown.
BIN
public/js/daci.chunk.a498fff65c83f174.js
vendored
Normal file
BIN
public/js/daci.chunk.a498fff65c83f174.js
vendored
Normal file
Binary file not shown.
BIN
public/js/discover.chunk.1404d3172761023b.js
vendored
Normal file
BIN
public/js/discover.chunk.1404d3172761023b.js
vendored
Normal file
Binary file not shown.
BIN
public/js/discover.chunk.c2229e1d15bd3ada.js
vendored
BIN
public/js/discover.chunk.c2229e1d15bd3ada.js
vendored
Binary file not shown.
BIN
public/js/discover~findfriends.chunk.29c7f06a6a4c6f61.js
vendored
Normal file
BIN
public/js/discover~findfriends.chunk.29c7f06a6a4c6f61.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/js/discover~hashtag.bundle.1b11b46e0b28aa3f.js
vendored
Normal file
BIN
public/js/discover~hashtag.bundle.1b11b46e0b28aa3f.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/js/discover~memories.chunk.321431bd290466d4.js
vendored
Normal file
BIN
public/js/discover~memories.chunk.321431bd290466d4.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/js/discover~myhashtags.chunk.4cc859102b24780c.js
vendored
Normal file
BIN
public/js/discover~myhashtags.chunk.4cc859102b24780c.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/js/discover~serverfeed.chunk.b4c4ca11f3498bf1.js
vendored
Normal file
BIN
public/js/discover~serverfeed.chunk.b4c4ca11f3498bf1.js
vendored
Normal file
Binary file not shown.
BIN
public/js/discover~settings.chunk.07417fd0cd9c5833.js
vendored
Normal file
BIN
public/js/discover~settings.chunk.07417fd0cd9c5833.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/js/dms.chunk.2b55effc0e8ba89f.js
vendored
BIN
public/js/dms.chunk.2b55effc0e8ba89f.js
vendored
Binary file not shown.
BIN
public/js/dms.chunk.a42edfd973f6c593.js
vendored
Normal file
BIN
public/js/dms.chunk.a42edfd973f6c593.js
vendored
Normal file
Binary file not shown.
BIN
public/js/dms~message.chunk.6cd795c99fc1a568.js
vendored
Normal file
BIN
public/js/dms~message.chunk.6cd795c99fc1a568.js
vendored
Normal file
Binary file not shown.
BIN
public/js/dms~message.chunk.976f7edaa6f71137.js
vendored
BIN
public/js/dms~message.chunk.976f7edaa6f71137.js
vendored
Binary file not shown.
BIN
public/js/home.chunk.264eeb47bfac56c1.js
vendored
BIN
public/js/home.chunk.264eeb47bfac56c1.js
vendored
Binary file not shown.
BIN
public/js/home.chunk.ccbe0267817f9a26.js
vendored
Normal file
BIN
public/js/home.chunk.ccbe0267817f9a26.js
vendored
Normal file
Binary file not shown.
BIN
public/js/i18n.bundle.28bba3e12cdadf51.js
vendored
Normal file
BIN
public/js/i18n.bundle.28bba3e12cdadf51.js
vendored
Normal file
Binary file not shown.
BIN
public/js/i18n.bundle.93a02e275ac1a708.js
vendored
BIN
public/js/i18n.bundle.93a02e275ac1a708.js
vendored
Binary file not shown.
BIN
public/js/landing.js
vendored
BIN
public/js/landing.js
vendored
Binary file not shown.
BIN
public/js/manifest.js
vendored
BIN
public/js/manifest.js
vendored
Binary file not shown.
BIN
public/js/notifications.chunk.0c5151643e4534aa.js
vendored
BIN
public/js/notifications.chunk.0c5151643e4534aa.js
vendored
Binary file not shown.
BIN
public/js/notifications.chunk.1086603ea08d1017.js
vendored
Normal file
BIN
public/js/notifications.chunk.1086603ea08d1017.js
vendored
Normal file
Binary file not shown.
BIN
public/js/portfolio.js
vendored
BIN
public/js/portfolio.js
vendored
Binary file not shown.
BIN
public/js/post.chunk.41ea9082b932e599.js
vendored
Normal file
BIN
public/js/post.chunk.41ea9082b932e599.js
vendored
Normal file
Binary file not shown.
BIN
public/js/post.chunk.9184101a2b809af1.js
vendored
BIN
public/js/post.chunk.9184101a2b809af1.js
vendored
Binary file not shown.
BIN
public/js/profile.chunk.a2234f891ba86efd.js
vendored
BIN
public/js/profile.chunk.a2234f891ba86efd.js
vendored
Binary file not shown.
BIN
public/js/profile.chunk.e86bfb0eb7723ddc.js
vendored
Normal file
BIN
public/js/profile.chunk.e86bfb0eb7723ddc.js
vendored
Normal file
Binary file not shown.
BIN
public/js/profile~followers.bundle.50a39058d98e16eb.js
vendored
Normal file
BIN
public/js/profile~followers.bundle.50a39058d98e16eb.js
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/js/profile~following.bundle.9294aa1b560387c7.js
vendored
Normal file
BIN
public/js/profile~following.bundle.9294aa1b560387c7.js
vendored
Normal file
Binary file not shown.
BIN
public/js/spa.js
vendored
BIN
public/js/spa.js
vendored
Binary file not shown.
BIN
public/js/vendor.js
vendored
BIN
public/js/vendor.js
vendored
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -91,6 +91,8 @@
|
||||||
v-on:delete="deletePost"
|
v-on:delete="deletePost"
|
||||||
v-on:report-modal="handleReport"
|
v-on:report-modal="handleReport"
|
||||||
v-on:edit="handleEdit"
|
v-on:edit="handleEdit"
|
||||||
|
v-on:muted="handleMuted"
|
||||||
|
v-on:unfollow="handleUnfollow"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<likes-modal
|
<likes-modal
|
||||||
|
@ -543,6 +545,7 @@
|
||||||
|
|
||||||
deletePost() {
|
deletePost() {
|
||||||
this.feed.splice(this.postIndex, 1);
|
this.feed.splice(this.postIndex, 1);
|
||||||
|
this.forceUpdateIdx++;
|
||||||
},
|
},
|
||||||
|
|
||||||
counterChange(index, type) {
|
counterChange(index, type) {
|
||||||
|
@ -788,6 +791,21 @@
|
||||||
.then(res => {
|
.then(res => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleMuted(post) {
|
||||||
|
this.feed = this.feed.filter(p => {
|
||||||
|
return p.account.id !== post.account.id;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleUnfollow(post) {
|
||||||
|
if(this.scope === 'home') {
|
||||||
|
this.feed = this.feed.filter(p => {
|
||||||
|
return p.account.id !== post.account.id;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.updateProfile({ following_count: this.profile.following_count - 1 });
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
|
|
8
resources/assets/sass/spa.scss
vendored
8
resources/assets/sass/spa.scss
vendored
|
@ -189,6 +189,10 @@ a.text-dark:hover {
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
border: 1px solid var(--border-color) !important;
|
border: 1px solid var(--border-color) !important;
|
||||||
|
|
||||||
|
&-right {
|
||||||
|
border-color: var(--border-color) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-white,
|
.bg-white,
|
||||||
|
@ -396,6 +400,10 @@ span.twitter-typeahead .tt-suggestion:focus {
|
||||||
color: var(--dark);
|
color: var(--dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-backdrop {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline-status-component {
|
.timeline-status-component {
|
||||||
.username {
|
.username {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
|
Loading…
Reference in a new issue