Порядочная сволочь с мерзким характером (lord_baskervil) wrote in lj_dev,

AddComment method

Hi. This method works only for my posts, but I can't add comment to non-my posts. Each attempt returns this error:


<?xml version='1.0' encoding='UTF-8'?>

<methodResponse>

<fault>

<value>

<struct>

<member>

<name>faultString</name>

<value>

<string>Client error: Not allowed to create comment</string>

</value>

</member>

<member>

<name>faultCode</name>

<value>

<int>337</int>

</value>

</member>

</struct>

</value>

</fault>

</methodResponse>

I see this version of source code (http://repo.or.cz/w/livejournal.git/blob/HEAD:/cgi-bin/ljprotocol.pl#l560) I see that this error code returns if LJ::Comment->create failed but I don't understand why does it fail?
For my posts I can add comments without problem.

Tags: client, client: comments
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment

lord_baskervil

August 28 2014, 14:56:28 UTC 4 months ago

I solved the problem.
For JOURNAL value I should use the journal to what I want post. Not journal from what I post