mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Merge pull request #1311 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
27b12d9f74
4 changed files with 4 additions and 10 deletions
|
@ -19,7 +19,10 @@ class ProfileController extends Controller
|
|||
{
|
||||
public function show(Request $request, $username)
|
||||
{
|
||||
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
|
||||
$user = Profile::whereUsername($username)->firstOrFail();
|
||||
if($user->domain) {
|
||||
return redirect($user->remote_url);
|
||||
}
|
||||
if($user->status != null) {
|
||||
return $this->accountCheck($user);
|
||||
} else {
|
||||
|
@ -252,12 +255,4 @@ class ProfileController extends Controller
|
|||
return view('profile.bookmarks', compact('user', 'profile', 'settings', 'owner', 'following', 'timeline', 'is_following', 'is_admin'));
|
||||
}
|
||||
|
||||
public function createCollection(Request $request)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public function collections(Request $request)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
BIN
public/js/status.js
vendored
BIN
public/js/status.js
vendored
Binary file not shown.
Binary file not shown.
|
@ -156,7 +156,6 @@
|
|||
<p class="">
|
||||
<a v-once class="text-muted mr-3 text-decoration-none small" style="width: 20px;" v-text="timeAgo(s.created_at)" :href="s.url"></a>
|
||||
<span v-if="s.favourites_count" class="text-muted comment-reaction font-weight-bold mr-3">{{s.favourites_count == 1 ? '1 like' : s.favourites_count + ' likes'}}</span>
|
||||
<span class="text-muted comment-reaction font-weight-bold cursor-pointer" v-on:click="replyFocus(s, sindex)">Reply</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue