Skip to content
Snippets Groups Projects
Commit 93eb6671 authored by lain's avatar lain
Browse files

Linting fixes.

parent d65112a6
No related branches found
No related tags found
No related merge requests found
......@@ -11,16 +11,16 @@ const Attachment = {
type () {
let type = 'unknown'
if(this.attachment.mimetype.match(/text\/html/)) {
type = 'html';
if (this.attachment.mimetype.match(/text\/html/)) {
type = 'html'
}
if(this.attachment.mimetype.match(/image/)) {
type = 'image';
if (this.attachment.mimetype.match(/image/)) {
type = 'image'
}
if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
type = 'video';
if (this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
type = 'video'
};
return type
......
......@@ -3,9 +3,9 @@ const FavoriteButton = {
methods: {
favorite () {
if (!this.status.favorited) {
this.$store.dispatch('favorite', { id: this.status.id})
this.$store.dispatch('favorite', {id: this.status.id})
} else {
this.$store.dispatch('unfavorite', { id: this.status.id})
this.$store.dispatch('unfavorite', {id: this.status.id})
}
}
},
......
......@@ -8,9 +8,9 @@ const mediaUpload = {
const self = this
input.addEventListener('change', ({target}) => {
const file = target.files[0];
const formData = new FormData();
formData.append('media', file);
const file = target.files[0]
const formData = new FormData()
formData.append('media', file)
statusPosterService.uploadMedia({ store, formData })
.then((fileData) => {
self.$emit('uploaded', fileData)
......
import statusPoster from '../../services/status_poster/status_poster.service.js'
import MediaUpload from '../media_upload/media_upload.vue'
import { reject, map, uniqBy } from 'lodash';
import { reject, map, uniqBy } from 'lodash'
const buildMentionsString = ({user, attentions}, currentUser) => {
let allAttentions = [...attentions]
allAttentions.unshift(user)
......
......@@ -27,7 +27,7 @@ const Timeline = {
fetchOlderStatuses () {
const store = this.$store
const credentials = store.state.users.currentUser.credentials
store.commit('setLoading', { timeline: this.timelineName, value: true });
store.commit('setLoading', { timeline: this.timelineName, value: true })
timelineFetcher.fetchAndUpdate({
store,
credentials,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment