mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Merge pull request #3781 from urbit/lf/link-comment-fix
links: fix comment submission
This commit is contained in:
commit
d794d5bb05
@ -1,6 +1,7 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Spinner } from '~/views/components/Spinner';
|
import { Spinner } from '~/views/components/Spinner';
|
||||||
import { createPost } from '~/logic/api/graph';
|
import { createPost } from '~/logic/api/graph';
|
||||||
|
import { deSig } from "~/logic/lib/util";
|
||||||
|
|
||||||
|
|
||||||
export class CommentSubmit extends Component {
|
export class CommentSubmit extends Component {
|
||||||
@ -22,7 +23,7 @@ export class CommentSubmit extends Component {
|
|||||||
|
|
||||||
this.setState({ disabled: true }, () => {
|
this.setState({ disabled: true }, () => {
|
||||||
this.props.api.graph.addPost(
|
this.props.api.graph.addPost(
|
||||||
`~${this.props.ship}`,
|
`~${deSig(this.props.ship)}`,
|
||||||
this.props.name,
|
this.props.name,
|
||||||
post
|
post
|
||||||
).then((r) => {
|
).then((r) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user