Revert "Release 20200823.1100"
This commit is contained in:
@@ -14,13 +14,11 @@ class Ejaculation extends Model
|
||||
|
||||
const SOURCE_WEB = 'web';
|
||||
const SOURCE_CSV = 'csv';
|
||||
const SOURCE_WEBHOOK = 'webhook';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id', 'ejaculated_date',
|
||||
'note', 'geo_latitude', 'geo_longitude', 'link', 'source',
|
||||
'is_private', 'is_too_sensitive',
|
||||
'checkin_webhook_id'
|
||||
'is_private', 'is_too_sensitive'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
@@ -49,9 +47,9 @@ class Ejaculation extends Model
|
||||
return $this->hasMany(Like::class);
|
||||
}
|
||||
|
||||
public function scopeVisibleToTimeline(Builder $query)
|
||||
public function scopeOnlyWebCheckin(Builder $query)
|
||||
{
|
||||
return $query->whereIn('ejaculations.source', [Ejaculation::SOURCE_WEB, Ejaculation::SOURCE_WEBHOOK]);
|
||||
return $query->where('ejaculations.source', Ejaculation::SOURCE_WEB);
|
||||
}
|
||||
|
||||
public function scopeWithLikes(Builder $query)
|
||||
|
Reference in New Issue
Block a user