mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +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;
|
if (start < this.visibleStart || end > this.visibleEnd) return;
|
||||||
|
|
||||||
const anchorIndex = backwards ? this.visibleEnd - 1 : this.visibleStart;
|
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();
|
this.unpause();
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,7 +20,7 @@ class DiscussionRepository
|
||||||
* certain user, or throw an exception.
|
* certain user, or throw an exception.
|
||||||
*
|
*
|
||||||
* @param integer $id
|
* @param integer $id
|
||||||
* @param \Flarum\Core\Users\User $user
|
* @param User $user
|
||||||
* @return \Flarum\Core\Discussions\Discussion
|
* @return \Flarum\Core\Discussions\Discussion
|
||||||
*/
|
*/
|
||||||
public function findOrFail($id, User $user = null)
|
public function findOrFail($id, User $user = null)
|
||||||
|
@ -33,7 +33,7 @@ class DiscussionRepository
|
||||||
/**
|
/**
|
||||||
* Get the IDs of discussions which a user has read completely.
|
* Get the IDs of discussions which a user has read completely.
|
||||||
*
|
*
|
||||||
* @param \Flarum\Core\Users\User $user
|
* @param User $user
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getReadIds(User $user)
|
public function getReadIds(User $user)
|
||||||
|
@ -48,7 +48,7 @@ class DiscussionRepository
|
||||||
* Scope a query to only include records that are visible to a user.
|
* Scope a query to only include records that are visible to a user.
|
||||||
*
|
*
|
||||||
* @param Builder $query
|
* @param Builder $query
|
||||||
* @param \Flarum\Core\Users\User $user
|
* @param User $user
|
||||||
* @return Builder
|
* @return Builder
|
||||||
*/
|
*/
|
||||||
protected function scopeVisibleTo(Builder $query, User $user = null)
|
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
|
* Represents the criteria that will determine the entire result set of a
|
||||||
* search. The limit and offset are not included because they only
|
* search. The limit and offset are not included because they only determine
|
||||||
* determine which part of the entire result set will be returned.
|
* which part of the entire result set will be returned.
|
||||||
*/
|
*/
|
||||||
class SearchCriteria
|
class SearchCriteria
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user