Added plain URL for privileged users.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
<Link
|
||||
:href="scene.watchUrl"
|
||||
:href="user?.abilities.some((ability) => ability.plainUrls) ? scene.url : scene.watchUrl"
|
||||
:title="scene.date ? format(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${format(scene.createdAt, 'y-MM-dd')}`"
|
||||
target="_blank"
|
||||
class="date-link nolink"
|
||||
@@ -52,6 +52,10 @@ defineProps({
|
||||
type: Object,
|
||||
default: null,
|
||||
},
|
||||
user: {
|
||||
type: Object,
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user