mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update profile embeds, filter sensitive posts
This commit is contained in:
parent
a1e162f095
commit
ede5ec3bf4
1 changed files with 75 additions and 74 deletions
|
@ -16,8 +16,8 @@
|
||||||
<meta name="medium" content="image">
|
<meta name="medium" content="image">
|
||||||
<meta name="theme-color" content="#10c5f8">
|
<meta name="theme-color" content="#10c5f8">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<link rel="shortcut icon" type="image/png" href="/img/favicon.png?v=2">
|
<link rel="shortcut icon" type="image/png" href="{{url('/img/favicon.png?v=2')}}">
|
||||||
<link rel="apple-touch-icon" type="image/png" href="/img/favicon.png?v=2">
|
<link rel="apple-touch-icon" type="image/png" href="{{url('/img/favicon.png?v=2')}}">
|
||||||
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
|
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body.embed-card {
|
body.embed-card {
|
||||||
|
@ -86,13 +86,14 @@
|
||||||
axios.get('/api/pixelfed/v1/accounts/{{$profile['id']}}/statuses', {
|
axios.get('/api/pixelfed/v1/accounts/{{$profile['id']}}/statuses', {
|
||||||
params: {
|
params: {
|
||||||
only_media: true,
|
only_media: true,
|
||||||
limit: 20
|
limit: 24
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
let parent = $('.embed-row');
|
let parent = $('.embed-row');
|
||||||
res.data
|
res.data
|
||||||
.filter(res => res.pf_type == 'photo')
|
.filter(res => res.pf_type == 'photo')
|
||||||
|
.filter(res => !res.sensitive)
|
||||||
.slice(0, 9)
|
.slice(0, 9)
|
||||||
.forEach(post => {
|
.forEach(post => {
|
||||||
let el = `<div class="col-4 mt-2 px-0">
|
let el = `<div class="col-4 mt-2 px-0">
|
||||||
|
|
Loading…
Reference in a new issue