Giter Club home page Giter Club logo

shack-api-net-2's People

Watchers

 avatar  avatar

shack-api-net-2's Issues

Searches with digits in any of the 3 search fields are getting matched by a URL Rewriting rule incorrectly

For example, the search URL: 
http://shackapi.stonedonkey.com/search?SearchTerm=&Author=shyguy74&ParentAuthor=
&json=1&page=1

is getting matched by the last URL Rewrite rule incorrectly:
match = Regex.Match(url, "([0-9].*).json", RegexOptions.IgnoreCase);

It's matching because of the digits in the authors name and then later in the 
URL "json" causes the match.

I have attached a fix for this, plus added paging to the search.json and 
messages.json rewrite rules and added last_page to the JSON output of searching 
and messages.

Original issue reported on code.google.com by [email protected] on 27 Oct 2012 at 2:30

Attachments:

Enhancement for Stories

I have added a new field to the ShackStory.cs class called "thread_id"

This field is then populated on the individual story fetch page 
(stories/Default.aspx.cs) to hold the root id of the comment thread attached to 
the story. The root id of the comment thread isn't available on the main shack 
news page that shows all stories, so the field is an empty string there 
(Stories.aspx.cs).

I need the direct Story API call to return this new thread_id field so that I 
can jump directly to the thread of the story within LatestChatty.app

Original issue reported on code.google.com by [email protected] on 31 Oct 2013 at 2:17

Attachments:

Messages read/send/mark read fix

Hey dude, I think I fixed the Messages login issues with reading messages, 
sending messages, and marking messages read.

I'm attaching the necessary changes to this issue. It all works locally and but 
admittedly isn't thoroughly tested beyond myself hitting it a bunch of times to 
read, send and then mark my test messages read. I think it's good to go though.


Original issue reported on code.google.com by [email protected] on 17 Jun 2013 at 2:08

Attachments:

Multi-line previews don't handle spoiler tags correctly

See example post with a spoiler that has line breaks:
http://www.shacknews.com/chatty?id=31138478#item_31138478

http://shackapi.stonedonkey.com/thread/31137927.xml
doesn't handle the spoiler in the preview correctly.

I have reordered the regex string replacement logic for the previews to remove 
line breaks first and then remove the spoiler <span> tag, instead of the 
opposite. This seems to work fine.

Original issue reported on code.google.com by [email protected] on 27 Nov 2013 at 1:31

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.