mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Random cleanup
This commit is contained in:
parent
77dbbae170
commit
970030b77e
|
@ -338,7 +338,7 @@ class PostStream extends mixin(Component, evented) {
|
|||
if (start < this.visibleStart || end > this.visibleEnd) return;
|
||||
|
||||
const anchorIndex = backwards ? this.visibleEnd - 1 : this.visibleStart;
|
||||
anchorScroll(`.PostStream-item[data-index=${anchorIndex}]`, () => m.redraw(true));
|
||||
anchorScroll(`.PostStream-item[data-index="${anchorIndex}"]`, () => m.redraw(true));
|
||||
|
||||
this.unpause();
|
||||
};
|
||||
|
|
|
@ -20,7 +20,7 @@ class DiscussionRepository
|
|||
* certain user, or throw an exception.
|
||||
*
|
||||
* @param integer $id
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return \Flarum\Core\Discussions\Discussion
|
||||
*/
|
||||
public function findOrFail($id, User $user = null)
|
||||
|
@ -33,7 +33,7 @@ class DiscussionRepository
|
|||
/**
|
||||
* Get the IDs of discussions which a user has read completely.
|
||||
*
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return array
|
||||
*/
|
||||
public function getReadIds(User $user)
|
||||
|
@ -48,7 +48,7 @@ class DiscussionRepository
|
|||
* Scope a query to only include records that are visible to a user.
|
||||
*
|
||||
* @param Builder $query
|
||||
* @param \Flarum\Core\Users\User $user
|
||||
* @param User $user
|
||||
* @return Builder
|
||||
*/
|
||||
protected function scopeVisibleTo(Builder $query, User $user = null)
|
||||
|
|
|
@ -4,8 +4,8 @@ use Flarum\Core\Users\User;
|
|||
|
||||
/**
|
||||
* Represents the criteria that will determine the entire result set of a
|
||||
* search. The limit and offset are not included because they only
|
||||
* determine which part of the entire result set will be returned.
|
||||
* search. The limit and offset are not included because they only determine
|
||||
* which part of the entire result set will be returned.
|
||||
*/
|
||||
class SearchCriteria
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user