Hi Alexander

I don't use either the Markdown plugin (I like my content to be in HTML) nor
use AtomPub  (I may if you know a good cross platform - *nux & Mac -
client), but your can understand the situation you're in.

One method is indeed to change the atomhandler.php as you have done, but a
better solution would be to change the plugin itself.

I suspect most plugin authors of plugins that modify feeds only consume the
end result and don't actually use the AtomPub functionality.

I'll take a look at the various plugins and the Habari code when I've got a
free moment (hopefully in the afternoons this week) to see if I can come up
with a better solution. First thing I need to do is get myself an AtomPub
client to test with :-)

Cheers,
Colin


On Sat, Sep 4, 2010 at 9:26 PM, Alexander <[email protected]> wrote:

> Since it seems no one else this problem, or there is no good solution
> for this problem I'll just post what I'm using right now.
>
> I only allow the call to atom_get_collection in get_collection in
> atomhandler.php if the request is not authenticated. Since I'm the
> only user that uses authenticated feeds it works for me, but it's a
> quite dirty hack and I'd be really happy if anyone had a better
> solution to this problem.
>
> Alex
>
> --- atomhandler.php     (revision 4299)
> +++ atomhandler.php     (working copy)
> @@ -773,7 +773,10 @@
>
>                $xml = $this->add_posts($xml, $posts );
>
> -               Plugins::act( 'atom_get_collection', $xml, $params,
> $handler_vars );
> +               if ( !$this->is_auth() ) {
> +                       Plugins::act( 'atom_get_collection', $xml, $params,
> $handler_vars );
> +               }
> +
>                $xml = $xml->asXML();
>
>                ob_clean();
>
>
> On 31 Aug., 19:18, Alexander <[email protected]> wrote:
> > I'm using the habarimarkdown module and write my posts in an external
> > editor.
> >
> > Everything works nice and If I edit online I've still got my raw
> > Markdown content - just like expected.
> > But if I want to edit a post in the external editor Habari sends me
> > the converted HTML and not the raw Markdown code I really expect and
> > want.
> >
> > Is there a way to turn off the filter for the AtomPub, while keeping
> > it on for the normal Atom feed?
> >
> > I had this problem with every text filter I tried and I can't imagine
> > that this behaviour is intended.
> >
> > Alex
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/habari-users
>



-- 
Colin Seymour
Blog: http://colinseymour.co.uk
Tech Stuff: http://lildude.co.uk
Barefoot Running: http://barefootrunner.co.uk
IRC: lildude #habari

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to