diff --git a/src/assets/nsfw.jpg b/src/assets/nsfw.jpg
new file mode 100644
index 00000000..6ae4ffe9
Binary files /dev/null and b/src/assets/nsfw.jpg differ
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
new file mode 100644
index 00000000..c21cd656
--- /dev/null
+++ b/src/components/attachment/attachment.js
@@ -0,0 +1,21 @@
+import nsfwImage from '../../assets/nsfw.jpg'
+
+const Attachment = {
+ props: [
+ 'attachment',
+ 'nsfw'
+ ],
+ data: () => ({ nsfwImage }),
+ computed: {
+ type () {
+ return 'image'
+ }
+ },
+ methods: {
+ showNsfw () {
+ this.nsfw = false
+ }
+ }
+}
+
+export default Attachment
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
new file mode 100644
index 00000000..67c6ac18
--- /dev/null
+++ b/src/components/attachment/attachment.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
diff --git a/src/components/status/status.js b/src/components/status/status.js
index ad08d9b7..2842ef0f 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -1,5 +1,24 @@
+import Attachment from '../attachment/attachment.vue'
+
const Status = {
- props: [ 'status' ]
+ props: [ 'statusoid' ],
+ data: () => ({
+ nsfw: true
+ }),
+ computed: {
+ retweet () { return !!this.statusoid.retweeted_status },
+ retweeter () { return this.statusoid.user.name },
+ status () {
+ if (this.retweet) {
+ return this.statusoid.retweeted_status
+ } else {
+ return this.statusoid
+ }
+ }
+ },
+ components: {
+ Attachment
+ }
}
export default Status
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 6ced1af5..04a55f67 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -1,11 +1,11 @@
-